<extend name="Base/common" />
<block name="body">
	<!--导航引用-->
	<include file="Public/nav" />
	<section class="ui-container">
		<div class="ui-user-portrait-wrap">
			<div class="ui-user-portrait-box">
				<img src="__IMG__/home/default-icon.png" width="100" height="100"/>
				<p class="ui-user-id">ID：{$_SESSION['userid']}</p>
			</div>
		</div>
		
		<div class="ui-row-flex ui-border-tb tc ui-pxui-tab ui-user-pxui-state">
		    <div class="ui-col ui-border-r">
		    	<a href="{:U('Order/index', array('type' => 1))}" class="ui-flex-pack-center">
		    		<i class="iconfont">&#xe6ac;</i>	
		    		<eq name="row.notpay" value="0"><else /><i class="ui-badge-cornernum">{$row.notpay}</i></eq>
		    		<span>待付款</span>
		    	</a>
		    </div>
		    <div class="ui-col ui-border-r">
		    	<a href="{:U('Order/index', array('type' => 3))}" class="ui-flex-pack-center">
		    		<i class="iconfont">&#xe671;</i>
		    		<eq name="row.notgoods" value="0"><else /><i class="ui-badge-cornernum">{$row.notgoods}</i></eq>
		    		<span>待收货</span>
		    	</a>
		    </div>
		   <!--  <div class="ui-col ui-border-r">
		    	<a href="{:U('Order/index', array('type' => 4))}" class="ui-flex-pack-center">
		    		<i class="iconfont">&#xe6a4;</i>
		    		<i class="ui-badge-cornernum">{$row.return}</i>
		    		<span>退货</span>
		    	</a>
		    </div> -->
		    <div class="ui-col ui-border-r">
		    	<a href="{:U('Order/index', array('type' => 0))}" class="ui-flex-pack-center">
		    		<i class="iconfont">&#xe67c;</i>
		    		<span>全部</span>
		    	</a>
		   	</div>
		</div>
		<ul class="ui-list ui-list-text ui-list-link ui-border-tb ui-user-function-list">
		    <li class="ui-border-t">
		        <h4 class="ui-nowrap"><i class="iconfont">&#xe732;</i><span>我的收藏</span></h4>
		    </li>
		    <li class="ui-border-t">
		        <h4 class="ui-nowrap"><i class="iconfont">&#xe6ec;</i><span>我的钱包</span></h4>
		    </li>
		    <li class="ui-border-t">
		        <h4 class="ui-nowrap"><i class="iconfont">&#xe671;</i><span>收货地址</span></h4>
		    </li>
		    <li class="ui-border-t">
		        <h4 class="ui-nowrap"><i class="iconfont">&#xe6af;</i><span>我的购物车</span></h4>
		    </li>
		    <li class="ui-border-t">
		        <h4 class="ui-nowrap"><i class="iconfont">&#xe667;</i><span>关于点粉圈</span></h4>
		    </li>
		</ul>
	    <!--版权引用-->
	    <include file="Public/m_footer" />
	</section>
</block>
<block name="script">
	<script type="text/javascript">
		$('ul li').tap(function(){
			var type_name = $(this).index();
			switch(type_name){
				case 0:
					forward_url("{:U('userCollect')}");
					break;
				case 1:
					forward_url("{:U('bank_index')}");
					break;
				case 2:
					forward_url("{:U('userManager')}");
					break;
				case 3:
					forward_url("{:U('Cart/index')}");
					break;
				case 4:
					forward_url("{:U('aboutinfo')}");
					break;
			}
		});

		function forward_url(url){
			window.location.href = url;
		}
	</script>
</block>

